// This file is part of Indico.
// Copyright (C) 2002 - 2025 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.

@use 'rb:styles/palette' as *;
@use 'rb:styles/responsive' as *;

.photo-dimmable-width {
  width: 100%;

  .photo-width {
    width: 100%;

    img {
      width: 100%;
    }
  }
}

.photo-dimmer {
  display: flex;
  justify-content: center;
}

.feature-box {
  pointer-events: none;
  position: absolute;
  display: flex;
  bottom: -1px;
  width: 100%;

  .feature-entries {
    cursor: default;
    pointer-events: auto;
    background-color: $white;
    border-radius: 3px 3px 0 0;
    border-color: $pastel-gray $pastel-gray $white $pastel-gray;
    border-width: 1px 1px 2px 1px;
    border-style: solid;
    padding: 5px;
    margin: auto;
  }

  :global(.icon) {
    display: inline;
    padding: 0 0.25em;
  }
}

.photo-column {
  overflow: hidden;

  .image-container {
    border: 1px solid $pastel-gray;
    position: relative;
    height: 100%;
    width: 100%;

    @media (max-width: $tablet-width) {
      border: none;
    }

    &.clickable {
      cursor: zoom-in !important;
    }
  }
}

:global(.ui.grid) > .data-column:global(.column) {
  padding-left: 2em;
}

ul.room-basic-details {
  list-style-type: none;
  padding: 0;
  color: $dark-black;
  margin-left: -2em;

  li {
    margin: 0.2em 0;
    padding-left: 2em;

    label,
    :global(.icon) {
      color: $light-black;
    }

    :global(.icon) {
      margin-right: 0;
      width: 2em;
      display: inline-block;
    }

    &:global(.has-icon) {
      padding-left: 0;
      @media (max-width: $tablet-width) {
        padding-left: 1.5em;
      }
    }
  }
}
